<?php

namespace App\Exceptions;

class OtherException extends BaseException
{
    const CODE_1000 = 1000;
    const CODE_1001 = 1001;
    const CODE_1002 = 1002;
    const CODE_1003 = 1003;

    protected int   $baseCode = self::BASE_CODE_OF_OTHER;    //
    protected array $showMsg  = [
        self::CODE_1000 => '购物车数据不存在',
        self::CODE_1001 => '物流信息不存在',
        self::CODE_1002 => '配置不存在',
        self::CODE_1003 => '查询物流信息异常，请联系平台',
    ];

    function __construct($msg = '', $code = 0)
    {
        parent::__construct($msg, $code);
    }
}
